#include <QtGui/QApplication>
#include "Mutagen.h"
#include "ContinuousSequencer.h"
#include "MainWindow.h"
#include "MutaAttractor.h"

int main(int argc, char *argv[])
{

    //QApplication::setGraphicsSystem("raster");
    QApplication a(argc, argv);
    QSemaphore* wait4CleanupDone = new QSemaphore(1);
    int r;

    //MutaAttractor attractor;
    //attractor.init();
    //attractor.renderAttractor(800,600);

    Mutagen m(wait4CleanupDone);
    QObject::connect(&a, SIGNAL(aboutToQuit()), &m, SLOT(handleQuit()));
    r = a.exec();
    wait4CleanupDone->acquire();
    QVariant* array[4];
    array[0] = new QVariant("ok");
    array[1] = new QVariant(3.00);
    array[2] = new QVariant();
    array[3] = new QVariant(8);

    return r;
}
